<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.8.3.js" type="text/javascript"/>
</head>
<body>
<table>
    <tr id="dual">
        <th>新闻标题</th>
        <th>新闻版块</th>
        <th>发布人</th>
        <th>发布时间</th>
    </tr>
</table>
<script>
    $(function () {
        $.ajax({
            url:"GetAllTopicServlet",
            type:"POST",
            datatype:"json",
            success:function (data) {
                var s="";
                var list=data.jsonArray;
                for (var i = 0; i <list.length ; i++) {
                    s+="<tr>";
                    s+="<td>list.title</td>";
                    s+="<td>list.board.bname</td>";
                    s+="<td>list.admin.aname</td>";
                    s+="<td>list.sendTime</td>";
                    s+="</tr>";
                    $("#dual").after(s);
                }
            }
        })
    })
</script>
</body>
</html>